import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { RouteReuseStrategy } from "@angular/router";
import { IonicModule, IonicRouteStrategy } from "@ionic/angular";

import { AppRoutingModule } from './app.routing-module';
import { AppComponent } from './app.component';

import { ConfigService } from "./common/config.service";
import { SharedService } from "./rx/shared.service";
import { InnerMqService } from "./rx/inner-mq.service";

@NgModule({
	imports: [
		BrowserModule,
		IonicModule.forRoot({
			mode: ConfigService.GET_THEME_BY_STATIC()
		}),
		AppRoutingModule,
	],
	declarations: [
		AppComponent
	],
	providers: [
		{ provide: RouteReuseStrategy, useClass: IonicRouteStrategy },
		SharedService,
		InnerMqService,
	],
	bootstrap: [AppComponent]
})
export class AppModule {
}
